package Message_Bridge_08.Message;

import Message_Bridge_08.AbstractMessage;
import Message_Bridge_08.MessageSender;

public class CommonMessage extends AbstractMessage {
    private MessageSender messageSender;

    public CommonMessage(MessageSender messageSender) {
        this.messageSender = messageSender;
    }

    @Override
    public void send() {
        String message = "这是一个普通消息";
        messageSender.send(message);
    }
}
